// pages/me/me.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
    userInfo:{},
  },

  setup: function (e) {
    wx.navigateTo({
      url: '/pages/setup/setup',
    })
  },

  navToAbout: function(){
    wx.navigateTo({
      url: '/pages/about/about',
    })
  },

  navToMyInfo:function(){
    wx.navigateTo({
      url: '/pages/myInfo/myInfo',
    })
  },
  NavToStar:function(){
    wx.navigateTo({
      url: '/pages/allNews/allNews?id=1',
    })
  },
  NavToHistory:function(){
    wx.navigateTo({
      url: '/pages/allNews/allNews?id=2',
    })
  },

 /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      userInfo: getApp().globalData.userInfo,
    })
    console.log(getApp().globalData.userInfo)
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})